package com.example.springredirectafterlogin.controller;

import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HomeController {

    @GetMapping(value = "/homePage",produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseEntity<String> homePage(){
        return new ResponseEntity<>("this page is home page", HttpStatus.OK);
    }

    @GetMapping(value = "/console",produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseEntity<String> console(){
        return new ResponseEntity<>("this page is console",HttpStatus.OK);
    }
}
